package com.efast.cafe.portal.service.doc.impl;

import java.util.List;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.efast.cafe.framework.util.SpringWebUtils;
import com.efast.cafe.portal.dao.doc.DocUserDao;
import com.efast.cafe.portal.entity.doc.PortalCompanyUser;
import com.efast.cafe.portal.service.doc.IDocUserService;
@Service
@Transactional
public class DocUserServiceImpl implements IDocUserService{
	
	@Autowired
	private DocUserDao docUserDao;

	@Override
	public List<PortalCompanyUser> queryDocUserlist(PortalCompanyUser portalCompanyUser) {
		portalCompanyUser.setCompanyCode(SpringWebUtils.getRequestCompany());
		return docUserDao.queryDocUserlist(portalCompanyUser);
	}
	
	@Override
	public PortalCompanyUser queryDocUser() {
		PortalCompanyUser a=docUserDao.queryDocUser(SpringWebUtils.getRequestUser(),SpringWebUtils.getRequestCompany());
		return docUserDao.queryDocUser(SpringWebUtils.getRequestUser(),SpringWebUtils.getRequestCompany());
	}

	
}
